<?php
/* @var $this ProjectController */
/* @var $model Project */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>



	<div class="row">
		<?php echo $form->labelEx($model,'year'); ?>
		<?php echo CHtml::activeDropDownList($model,'year',DateTimeArray::yearThaiArray(),array('prompt'=>'ปีการศึกษา')); ?>
		<?php echo $form->error($model,'year'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'semester'); ?>
		<?php echo CHtml::activeDropDownList($model,'semester',array('1'=>'1','2'=>'2'),array('prompt'=>'ภาคการศึกษา')); ?>
		<?php echo $form->error($model,'semester'); ?>
	</div>
<?php 
$this->widget('zii.widgets.jui.CJuiButton',array(
    'name'=>'btnNew',
    'caption'=>'เพิ่มรายการ',
    'buttonType'=>'link',
    'url'=>Yii::app()->createUrl('project/create'),

));
?>
<?php 
$this->widget('zii.widgets.jui.CJuiButton',array(
    'buttonType'=>'submit',
    'name'=>'btnSearch',
    'caption'=>'ค้นหา',
    'url'=>array('#'),
	'htmlOptions'=>array('class'=>'search-button')
));
?>

<?php $this->endWidget(); ?>

</div><!-- search-form -->